import { tableForm } from '/@/libs/vxeUse';
import { h, } from "vue";
export const formsUp = (data) => {
  let arr = [
    {
    label: "询价单号",
    key: "billNo",
    type: 'input',

    rules: {
      required: true, trigger: 'blue'
    },
    attrs: {
      disabled:true

    }
  },
  {
    label: "物料单号",
    key: "materialNo",
    type: 'input',
    attrs: {
      disabled:true

    }
  },
  {
    label: "物料名称",
    key: "materialName",
    type: 'input',
    attrs: {
      disabled:true

    }
  },
  {
    label: "询价数量",
    key: "qty",
    type: 'input',
    attrs: {
      disabled:true

    }
  },
  {
    label: "询价单位",
    key: "unit",
    type: 'input',
    // optionList: [{ lable: '猪猪', value: 'zhuzhu' }, { lable: '芬芬', value: 'fenfen' }],
    // optionValue: 'value',
    // optionLabel: 'lable'
    attrs: {
      disabled:true

    }
  },
  {
    label: "询价日期",
    key: "billDate",
    type: 'date',
    attrs: {
      disabled:true

    }
  },
  {
    label: "备注:",
    key: "remark",
    type: "input",
    attrs: {
      type: "textarea",
      disabled:true
    },
  },
]

  return arr
}

export const tableDown = (data) => {
  let arr = [
    { type: 'checkbox', width: 50 },
    { type: 'seq', width: 150,title:'序号' },
    {
      field: 'qty', title: '数量范围', editRender: {
        ...tableForm.input({})
      },
    },

    {
      field: 'price', title: '结算单价', editRender: {
        ...tableForm.input({})
      },
    },
    {
      field: 'payment', title: '结算方式', editRender: {
        ...tableForm.input({})
      },
    },
    {
      field: 'remark', title: '备注', editRender: {
        ...tableForm.input({})
      },
    },
   
   
  ];
  return arr
}